package com.mew.chess.core.game.pokdeng.game.message;

import com.mew.chess.core.common.message.request.BetRequestMessage;
import io.netty.buffer.ByteBuf;
import lombok.Data;

/**
 * @author dylin
 * @create 2021/5/7
 */
@Data
public class PokDengBetRequest extends BetRequestMessage {
    private int tableId;
    private int seatNo;
    @Override
    public PokDengBetRequest read(ByteBuf b) {
        PokDengBetRequest betRequestMessage = new PokDengBetRequest();
        betRequestMessage.setBetNumber(readLong(b));
        betRequestMessage.setBetType(readInt(b));
        betRequestMessage.setTableId(readInt(b));
        betRequestMessage.setSeatNo(readInt(b));
        return betRequestMessage;
    }
}
